
			var authorArticleRank = {
					authorRankList :function(id){
						$.post(window.ctx + '/sys/authorRankList',{userId:id},function(data){
							if(data){
								var html = [];
								for (var i = 0; i < data.length; i++) {
									var title = data[i].title.substring(0,15)+'...';
									html.push('<li class="list-group-item"><a href="'+ window.ctx +'/sys/getArticle?id='+ data[i].id +'">'+ (i+1) +'、'+ title +'</a><span class="badge">'+ data[i].readTimes +'</span></li>');
								}
								$('#authorRank').append(html.join(''));
							}
						});
					},
					categoryInfo:function(uId){
						$.post(window.ctx + '/sys/categoryInfo',{userId:uId},function(data){
							if(data){
								var html = [];
								html.push('<li class="list-group-item"><a href="'+ window.ctx +'/sys/authorBlog?userId='+ uId +'&pageNo=1">全部博文 </a><span class="badge"> '+ data[data.length-1][0] +' </span></li>');
								for (var i = 0; i < data.length-1; i++) {
									html.push('<li class="list-group-item"><a href="'+ window.ctx +'/sys/getArticleByCategory?categoryId='+ data[i][0] +'&pageNo=1&userId='+ uId +'">'+ data[i][1] +'</a><span class="badge">'+ data[i][2] +'</span></li>');
								}
								$('#categoryInfo').append(html.join(''));
							}
						});
					}
			}
			
			$(function(){
				authorArticleRank.authorRankList(authorId);
				authorArticleRank.categoryInfo(authorId);
			})